﻿using LeEdu.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LeEdu.IDAL
{
    public interface IQuestionsDAL
    {
        /// <summary>
        /// 添加试题
        /// </summary>
        /// <param name="quest"></param>
        /// <returns></returns>
        bool Add(Questions quest);
		/// <summary>
		/// 删除试题
		/// </summary>
		/// <param name="id"></param>
		/// <returns></returns>
		bool Del(int id);
		/// <summary>
		/// 编辑试题
		/// </summary>
		/// <param name="quest"></param>
		/// <returns></returns>
		bool Edit(Questions quest);
		/// <summary>
		/// 试题显示
		/// </summary>
		/// <returns></returns>
        IEnumerable<Questions> GetAllQuestion(int id);
		/// <summary>
		/// 获取试题数量
		/// </summary>
		/// <returns></returns>
		int GetQuestionCount();

    }
}
